from django.urls import path,include
from rest_framework.routers import DefaultRouter
from .views import TradingPairsViewSet

router = DefaultRouter()
router.register(r'tradingpairs', TradingPairsViewSet)

urlpatterns = [
    # 获得所有记录
    path('', include(router.urls)),
    path('data/', TradingPairsViewSet.as_view({'get': 'get_all_data'}))
]